# -*- coding: utf-8 -*-
# !/usr/bin/env python

from util.proxy_manager import manager
from util.proxy_validate import filter_proxies

if __name__ == '__main__':
    timeout = 30
    all_proxy = manager.get_all()
    filtered = filter_proxies(all_proxy, timeout)
    manager.remove_proxies(set(all_proxy).difference(set(filtered)))  # 删掉没用的
